﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using DataLayer;

namespace CinemaGUI
{
    public partial class SeatGUI : Form
    {
        static ScreenCastCTRService.ScreenCastServiceClient scsc = new ScreenCastCTRService.ScreenCastServiceClient();
        static MovieCTRService.MovieServiceClient msc = new MovieCTRService.MovieServiceClient();

        public SeatGUI(ScreenCast screenCast)
        {
            InitializeComponent();
            /**foreach (ScreenCast sc in scsc.GetScreenCastsForMovie(movie)) {
                
            }*/
        }

        private void SeatGUI_Load(object sender, EventArgs e)
        {

            // OPRETTER SCREENCASTS
            msc.AddMovie("Die Hard", "", "", "", 0.0);
            msc.AddMovie("High School Musical", "", "", "", 0.0);

            foreach(Movie m in msc.getMovies()) {
                scsc.AddScreenCast(new DateTime(), 3, m);
            }
            // OPRETTER SCREENCASTS END
        }
    }
}
